package com.bestcem.xm.txtanls.grpc.service.param.record;

import com.bestcem.xm.txtanls.grpc.service.param.PageParam;
import com.bestcem.xm.txtanls.service.dto.chart.TimeRangeDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * @author liheng
 * @version v1.0
 * @date 2021/5/18 11:23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ListRecordParam {


    /**
     * 分页参数
     */
    @NotNull(message = "分页参数不能为空")
    @Valid
    private PageParam pageParam;

    /**
     * 时间区间参数
     */
    private TimeRangeDTO timeRangeDTO;

    /**
     * 查询条件参数
     */
    @NotNull(message = "查询条件不能为空")
    @Valid
    private QueryConditionParam queryParam;

}
